#include <stdio.h>



int main(){
    char str[20];
    int m=0,n=0;
    printf("input string:");
    scanf("%s",&str);
    for(int i=0;str[n+1]!='\0';i++){
        n++;
    }
    printf("which character that begin to copy?");
    scanf("%d",&m);
    if(m>n){
        printf("input error!");
        return 0;
    }
    printf("result:");
    for(int i=m-1;str[i]!='\0';i++){
        printf("%c",str[i]);
    }
    return 0;
}     